package com.example.mydemo.controller;

import com.example.mydemo.service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    UserServiceImpl userService;


    @GetMapping("/update/{count}")
    public Object update(@PathVariable Integer count){
        userService.update(count);
        return "ok";
    }
}
